<?php

namespace App\Http\Model;

use Illuminate\Database\Eloquent\Model;

class QuestionNaire extends Model
{
    //
    protected $table = 'htf_questionnaire';
    public $timestamps = false;
    protected $guarded=[];

    /**
     * 获取问题对应的选项
     * @return \Illuminate\Database\Eloquent\Relations\HasMany
     * create by wenQing
     */
    public function option()
    {
        return $this->hasMany('App\Http\Model\QuestionNaireOption','question_id');
    }
}
